package org.jeasy.mvc.validate;

import org.jeasy.mvc.validate.annotation.Min;

public class ValidateMin implements ValidateStrategy {
    private boolean mark;
    private Integer size,value;
	@Override
	public boolean doCheck(String parameter,Object obj) {
		size=parameter.length();
		Min min=(Min)obj;
		value=min.value();
		if(value!=null) {
		  mark=size>=value?true:false;
		}
		return mark;
	}

}
